package com.example.lib_apply

import com.example.lib_common.mvi.BaseRepository
import com.example.lib_common.mvi.ResponseEntity
import com.example.network_sdk.HttpType
import com.example.network_sdk.NetWorkFactory
import kotlinx.coroutines.flow.Flow

class ApplyRepository : BaseRepository() {
    fun requestAllApply(map: HashMap<String,Any>) : Flow<ResponseEntity<List<ApplyEntity>>> {
        return NetWorkFactory.factory(HttpType.TOKENSIGN)!!
            .create(ApiService::class.java)
            .requestAll(createBody(map))
    }
}